# -*- coding: utf-8 -*-
# @Time    : 2022/7/20 10:24
# @Author  : Yanfeng
# @Email   : sxyanfeng2014@163.com
# @File    : __init__.py.py
# @Software: PyCharm


import os



class ConfigHandler:
    _SLASH = os.sep
    #项目顶层目录
    base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    #
    #截图路径
    screenshot_dir = os.path.join(base_dir,'Outouts'+_SLASH+ 'screenshots'+_SLASH)
    #日志路径
    log_dir = os.path.join(base_dir,"Outouts"+_SLASH+"logs"+_SLASH)
    # 报告路径
    report_dir = os.path.join(base_dir,"Outouts"+_SLASH+"report"+_SLASH)
    #测试用例数据路径
    testdatas_dir = os.path.join(base_dir,"TestDatas"+_SLASH)

    #yaml配置文件路径
    yaml_dir = os.path.join(base_dir,"config"+_SLASH+"config.yaml")

    #allure html
    allure_html = os.path.join(base_dir,"Outouts"+_SLASH+"report"+_SLASH+"html"+_SLASH+"index.html")

    driver_dir = os.path.join(base_dir,"driver"+_SLASH+"msedgedriver.exe")




if __name__ == '__main__':
    print(ConfigHandler.base_dir+"")